package com.example.springdemo.design_model.decorator;

/**
 * 饮料牛奶类
 * @author zhangding
 * @date 2022年6月26日18:53:32
 */
public class Milk extends Beverage{

    public Milk() {
        // 从基类继承而来
        description = "Milk";
    }

    @Override
    public double cost() {
        return 9.9;
    }
}
